import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '@/views/Home';
import Login from '@/views/Login';
import Register from '@/views/Register';
import Personal from '@/views/personal/index';
import PersonalEdit from '@/views/personal/edit';
import PersonalFollow from '@/views/personal/follow';
import Test from '@/views/test/Test';
import PersonalStar from '@/views/personal/Star';
import PostDetail from '@/views/PostDetail';
import Test1 from '@/views/test/Test1';
import MoreComment from '@/views/MoreComment';
import PageQueryTest from '@/views/test/PageQuery';
import Pageparams from '@/views/test/Pageparams';
import Test2 from '@/views/test/Test2';
import Search from '@/views/Search';
import Comment from '@/views/personal/Comment';
import CategoryManage from '@/views/personal/CategoryManage';
Vue.use(VueRouter);
const routes = [
	{
		path: '/',
		name: 'Home',
		component: Home
	},
	{
		path: '/login',
		component: Login
	},
	{
		path: '/register',
		component: Register
	},
	{
		path: '/personal',
		component: Personal
	},
	{
		path: '/edit',
		component: PersonalEdit
	},
	{
		path: '/follow',
		component: PersonalFollow
	},
	{
		path: '/test',
		component: Test
	},
	{
		path: '/star',
		component: PersonalStar
	},
	{
		path: '/postDetail/',
		component: PostDetail
	},
	{
		path: '/test1',
		component: Test1
	},
	{
		path: '/morecomment',
		component: MoreComment
	},
	{
		name: 'PageQuery',
		path: '/testquery',
		component: PageQueryTest
	},
	{
		name: 'PageParams',
		path: '/testparams/:msg',
		component: Pageparams
	},
	{
		path: '/test2',
		component: Test2
	},
	{
		path: '/search',
		component: Search
	},
	{
		path: '/Comment',
		component: Comment
	},
	{
		path: '/categorymanage',
		component: CategoryManage
	}
];

const router = new VueRouter({
	routes
});

export default router;
